﻿<Window x:Class="WebFlipScreenSaver.View.ScreenSaverView"
		Name="ScreenSaverWindow"
        xmlns="http://schemas.microsoft.com/winfx/2006/xaml/presentation"
        xmlns:x="http://schemas.microsoft.com/winfx/2006/xaml"

        xmlns:refl="clr-namespace:System.Reflection;assembly=mscorlib"
        Title="ScreenSaverView" Height="300" Width="300" WindowState="Maximized" WindowStyle="None">


	<!--<transc:TransitionElement x:Name="TransitionBox" Transition="{Binding CurrentTransition}" DataContext="{Binding}" >
		<transc:TransitionElement.ContentTemplate>
			<DataTemplate>
				
					
	
			</DataTemplate>
		</transc:TransitionElement.ContentTemplate>
	</transc:TransitionElement>-->
	
	<!--<ContentControl  Content="{Binding CurrentWebPage}" RenderTransformOrigin="0.5,0.5" />-->
	<Grid Name="RootGrid">
		<Canvas Name="SlideCanvas">
			<ContentControl Name="Pane2"
							Height="{Binding ElementName=SlideCanvas,Path=ActualHeight}"
							Width="{Binding ElementName=SlideCanvas,Path=ActualWidth}"/>
			<ContentControl Name="Pane1"
							Height="{Binding ElementName=SlideCanvas,Path=ActualHeight}"
							Width="{Binding ElementName=SlideCanvas,Path=ActualWidth}"/>

		</Canvas>
		<Popup x:Name="OverlayControls" Height="200" Width="200"
			   Visibility="Hidden" DataContext="{Binding CurrentWebPage.DataContext}" 
			   Margin="42.8,43.8,42.8,41.8" OpacityMask="#FFA71A1A" AllowsTransparency="True" 
			   PopupAnimation="Slide" Placement="AbsolutePoint" IsManipulationEnabled="True" PlacementRectangle="Empty">
			<Popup.Effect>
				<DropShadowEffect/>
			</Popup.Effect>

			<Border BorderBrush="Black" CornerRadius="10" BorderThickness="2" Background="#57000000">
				<Grid Margin="0,-6,0,6">
					<StackPanel>
						<TextBlock Text="Change in:" FontWeight="Bold" FontSize="20"/>
						<TextBlock Text="{Binding SecondsUntilPageChange, Mode=TwoWay}" FontSize="20" />
						<TextBlock Text="{Binding SecondsUntilRefresh}" FontSize="20" />
						<Button Name="ShowSettingsButton" Content="Settings" Click="ShowSettingsButton_Click" />
					</StackPanel>		
				</Grid>
			</Border>
		</Popup>
	</Grid>
	
	
	<!--<ListBox Name="Boxer" ItemsSource="{Binding WebPages}" ScrollViewer.CanContentScroll="False" >
		<ListBox.ItemTemplate>
			<DataTemplate>
				<ContentControl  Content="{Binding}" Height="500" Width="500" />
			</DataTemplate>
		</ListBox.ItemTemplate>
	</ListBox>-->

	<!--<Grid Name="BrowserGrid">
		<transc:Slideshow IsSynchronizedWithCurrentItem="True" ItemsSource="{Binding WebPages}" x:Name="Slideshow"  
							  AutoAdvance="True" Background="#FF000000" >
			<transc:Slideshow.TransitionSelector>
				<Transitions:TwoWayTransitionSelector ForwardTransition="{Binding CurrentTransition}"  >
					
				</Transitions:TwoWayTransitionSelector>
			</transc:Slideshow.TransitionSelector>
		</transc:Slideshow>
	</Grid>-->
</Window>
